
  const initialState = {
    flag:false,//项目详情的计算器显示
    investFlag:false,//项目详情的计算器显示
   }
   export default (state = initialState, action) => {
     switch (action.type) {
       case 'DETAIL_CALCULATOR_FLAG':
       return Object.assign({}, state,{flag:action.flag})
       case 'DETAIL_INVESTMENT_FLAG':
       return Object.assign({}, state,{investFlag:action.flag})
       default:
       return state
     }
   }